package com.changgou.web.order;

import com.changgou.interceptor.FeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @Author: HuangFu
 * @Date: 2020/2/15 10:14
 * @Description:
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.changgou.order.feign"
        ,"com.changgou.user.feign","com.changgou.pay.feign"})
public class WebOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebOrderApplication.class,args);
    }

    @Bean
    public FeignInterceptor feignInterceptor(){
        return new FeignInterceptor();
    }
}
